package com.jf.hotelreservation.demos.mapper;

import com.jf.hotelreservation.demos.bean.Overview;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OverviewMapper {

    int addOverview(Overview overview);

    List<Overview> queryAll(@Param("currentPage") Integer currentPage,
                            @Param("pageSize") Integer pageSize);

    long count();

    List<Overview> queryByHotel();

    List<Overview> queryByHotelId(@Param("id") Integer id);

    int delOverviewByHid(@Param("id") Integer id);
}
